import { defaHttp, Paging, ApiReturn } from "../index";

/**个人赛表 */
export async function apiMeGameList(
  formData: Paging.Req
): ApiReturn<Paging.Data<MeGameList.ResItem[]>> {
  const res = await defaHttp.post<Paging.Res<MeGameList.ResItem[]>>(
    "/recharge/logs",
    formData
  );
  
  if (res.code !== 200) return;
  return res.data;
}
/**个人赛表 */
export namespace MeGameList {
  export interface ResItem {
    id: Id;
    /**交易HASH */
    txid: string;
    /**数量 */
    num: Id;
    created_at: string | Date;
    /**0确认中；1成功；2失败 */
    status: number;
    /**1中；2未中奖 */
    is_win: number;
    /**中奖后金额 */
    return_number: StrNumber;
    coin_id: Id;
    /**充值状态中文说明 */
    status_text: string;
    coin: {
      id: Id;
      code: string;
      image: string;
      logo: string;
    };
  }
}
